'use strict'

const titbit = require('titbit')

const app = new titbit({
    debug:true,
    https:true,
    key:'/usr/local/cert/www.lllh.club.key',
    cert:'/usr/local/cert/www.lllh.club.crt'
})

app.get('/',async c=>{
   let name =  process.env.USER; 
    c.res.body = name +' '+'success' 
})
app.get('/info',async c=>{
  let obj = {};
  obj.name = process.env.USER;
  obj.sno = '2018011641';
  c.res.body = JSON.stringify(obj);
})

app.run(7379);
